<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<form name="fm">
	<div align = "center" style = "font-size:50px;">请输入图书信息</div>
		<table align = "center" >
			<tr>
				<td width="30%" >ISBN：</td>
				<td width="70%"><input type="text" name="ISBN" id="ISBN">*</td>
			</tr>
			<tr>
				<td>书名：</td>
				<td><input type="text" name="Sname" id="Sname">*</td>
			</tr>
			<tr>
				<td>作者：</td>
				<td><input type="text" name="author" id="author">*</td>
			</tr>
			<tr>
				<td>类型：</td>
				<td><input type="text" name="type" id="type" >*</td>
			</tr>
			<tr>
				<td>出版社：</td>
				<td><input type="text" name="press" id="press">*</td>
			</tr>
			<tr>
				<td>价钱：</td>
				<td><input type="text" name="price" id="price">*</td>
			</tr>
			<tr>
				<td>数目：</td>
				<td><input type="text" name="surplus" id="surplus">*</td>
			</tr>
		</table>
		<br><br><br>
		<div  align = "center">
			<input  type="button" name="btn1" value="提交" onClick="submitCheck()" style = "font-size:40px;">&nbsp;&nbsp;&nbsp;&nbsp;
			<input type = "button" name = "button2" value = "返回" onClick = "back()" style = "font-size:40px;">
		</div>
	</form>
</body>
</html>
<script>
	function submitCheck(){
		document.fm.method="post";
		document.fm.action="add_book_do.jsp";
		document.fm.submit();
	}
	function back(){
		document.fm.method="post";
		document.fm.action="teacher.jsp";
		document.fm.submit();
	}
	

</script>